package com.gitee.hermer.engine.jars.core.xauth.domain;

import java.io.Serializable;
import java.util.List;

import com.jc.support.service.common.bo.AbstractBO;

public class DynamicMenu extends AbstractBO implements Serializable,Comparable{
	

	/**
	 * 鑿滃崟鍚嶇О
	 */
	private String menuName;

	/**
	 * 鑿滃崟URL
	 */
	private String menuUrl;

	/**
	 * 鎺掑簭鍙�
	 */
	private Integer orderNumber;

	/**
	 * 鍥炬爣
	 */
	private String icon;

	/**
	 * 鏉冮檺id
	 */
	private String permissionId;

	/**
	 * 鐖惰彍鍗昳d
	 */
	private String parentMenuId;

	/**
	 * 搴旂敤绋嬪簭key
	 */
	private String appKey;
	
	
	private List<DynamicMenu> subMenu = null;
	
	
	public void setSubMenu(List<DynamicMenu> subMenu) {
		this.subMenu = subMenu;
	}
	public List<DynamicMenu> getSubMenu() {
		return subMenu;
	}

	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public String getMenuUrl() {
		return menuUrl;
	}

	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}

	public Integer getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(Integer orderNumber) {
		this.orderNumber = orderNumber;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getPermissionId() {
		return permissionId;
	}

	public void setPermissionId(String permissionId) {
		this.permissionId = permissionId;
	}

	public String getParentMenuId() {
		return parentMenuId;
	}

	public void setParentMenuId(String parentMenuId) {
		this.parentMenuId = parentMenuId;
	}

	public String getAppKey() {
		return appKey;
	}

	public void setAppKey(String appKey) {
		this.appKey = appKey;
	}

	

	@Override
	public String toString() {
		return "DynamicMenuBO [id="+getId()+", menuName=" + menuName + ", menuUrl=" + menuUrl + ", orderNumber=" + orderNumber
				+ ", icon=" + icon + ", permissionId=" + permissionId + ", parentMenuId=" + parentMenuId + ", appKey="
				+ appKey + "]";
	}

	@Override
	public int compareTo(Object o) {
		return 0;
	}
	
	@Override
	public boolean equals(Object obj) {
		return ((DynamicMenu)obj).getId().equals(this.getId());
	}

}
